{include file="public/header" /}
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">所属模块</label>
				<div class="layui-input-inline">
					<select name="TopId" class="newsLook" lay-verify="required" lay-filter="selectMenu" lay-search>
						{volist name="menu" id="m" key="k"}
							<option value="{$k}" {eq name="$k" value="$view.top_id"}selected{/eq}>{$m}</option>
						{/volist}
					</select>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">一级栏目</label>
				<div class="layui-input-inline" id="MenuList">
					<select name="ParentId" class="newsLook" lay-filter="ParentId">
						{eq name="$view.parent_id" value="0"}
							<option value="0">请选择</option>
						{else/}
							<option value="$view.parent_id">{$view.parent_name}</option>
						{/eq}
					</select>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">栏目名称</label>
			<div class="layui-input-block">
				<input type="text" name="ModuleName" class="layui-input ModuleName" lay-verify="required" placeholder="请输入栏目名称" value="">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
			    <label class="layui-form-label">栏目深度</label>
			    <div class="layui-input-block">
			      	<input type="radio" name="depth" value="1" title="控制器" {eq name="$view.depth" value="1"}checked{/eq} >
			      	<input type="radio" name="depth" value="2" title="方法" {eq name="$view.depth" value="2"}checked{/eq} >
			    </div>
		    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">控制器</label>
			<div class="layui-input-block">
				<input type="text" name="controller" class="layui-input controller" lay-verify="required" placeholder="请输入控制器" value="{$view.controller}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">方法</label>
			<div class="layui-input-block">
				<input type="text" name="action" class="layui-input action" lay-verify="required" placeholder="请输入方法" value="{$view.action}">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">是否启用</label>
				<div class="layui-input-block">
					<input type="checkbox" name="show" class="isShow" title="启用" {eq name="$view.status" value="1"}checked{/eq} >
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="hidden" name="menu_id" class="" value="{$view.id}">
				<button class="layui-btn" lay-submit="" lay-filter="addNews">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="{$PUBLIC_STATIC_SRC.__ADMIN_JS__}/menu/menuAdd.js"></script>
</body>
</html>